Skip to content

Upgrade tunnel-server to Spring Boot 3.5.11 to pull patched Spring Security/Tomcat dependencies#3141

Draft
Copilot wants to merge 5 commits intomasterfrom
copilot/bump-spring-boot-version
Draft

Upgrade tunnel-server to Spring Boot 3.5.11 to pull patched Spring Security/Tomcat dependencies#3141
Copilot wants to merge 5 commits intomasterfrom
copilot/bump-spring-boot-version

Conversation

Copy link
Contributor

Copilot AI commented Feb 26, 2026

The tunnel-server fatjar was resolving vulnerable transitive dependencies from older Spring Boot/Spring Security/Tomcat lines. This update moves tunnel-server to a patched dependency line so spring-security-* and embedded Tomcat resolve to non-vulnerable versions.

  • Dependency line upgrade (tunnel-server only)

    • Bumped tunnel-server to spring-boot.version: 3.5.11.
    • Dropped prior explicit pinning of Spring Security 5.8.x and Tomcat 9.x in favor of Boot-managed versions from the upgraded BOM.
    • Added local dependencyManagement alignment for logging to avoid parent BOM drift:
      • org.slf4j:slf4j-api2.0.17
      • ch.qos.logback:logback-classic/core1.5.32
  • Spring Security 6 migration in tunnel-server

    • Replaced WebSecurityConfigurerAdapter with SecurityFilterChain bean configuration.
    • Updated authorization DSL to authorizeHttpRequests(...) with Customizer.withDefaults() for form login.
  • Jakarta namespace migration

    • Updated servlet imports used by tunnel-server web controllers:
      • javax.servlet.http.HttpServletRequestjakarta.servlet.http.HttpServletRequest

Example of the security config migration:

@Bean
SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws Exception {
    httpSecurity.authorizeHttpRequests((authorize) -> authorize
            .requestMatchers(EndpointRequest.toAnyEndpoint()).authenticated()
            .anyRequest().permitAll())
        .formLogin(Customizer.withDefaults());

    if (arthasProperties.isEnableIframeSupport()) {
        httpSecurity.headers((headers) -> headers.frameOptions((frameOptions) -> frameOptions.disable()));
    }
    return httpSecurity.build();
}

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • spring.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Bump Spring Boot Version to Fix Outdated Dependencies</issue_title>
<issue_description>- [x] I have searched the issues of this repository and believe that this is not a duplicate.

Description

Upgrade the Spring Boot version to address vulnerable transitive dependencies, including but not limited to:

  • Tomcat
  • Spring Security

The issue was identified in the published tunnel-server-fatjar, where critical marked vulnerable transitive dependencies are being pulled in.

Dependencies

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI and others added 4 commits February 26, 2026 17:29
…rsions

Co-authored-by: hengyunabc <1683936+hengyunabc@users.noreply.github.com>
Co-authored-by: hengyunabc <1683936+hengyunabc@users.noreply.github.com>
Co-authored-by: hengyunabc <1683936+hengyunabc@users.noreply.github.com>
Co-authored-by: hengyunabc <1683936+hengyunabc@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Spring Boot version to fix outdated dependencies Upgrade tunnel-server to Spring Boot 3.5.11 to pull patched Spring Security/Tomcat dependencies Feb 26, 2026
@hengyunabc
Copy link
Collaborator

@copilot 保留使用spring boot 2 是否可行?

Copy link
Contributor Author

Copilot AI commented Feb 27, 2026

@copilot 保留使用spring boot 2 是否可行?

不太可行(如果目标是把这批依赖漏洞都清掉)。在 Spring Boot 2 线上,spring-security-crypto 需要的修复版本会卡在不可用/不兼容区间:5.8.18 在 Maven Central 不可解析,而升到 6.x 又会和 Boot 2(Spring Framework 5、javax 体系)不兼容。Boot 2 下可以单独把 Tomcat 提升到安全版本,但 Spring Security 这条很难彻底闭环,所以我才改成了 Boot 3.5.11(见 e4ddb32)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump Spring Boot Version to Fix Outdated Dependencies

3 participants